package com.xzer.xiaozhuoerinterface.controller;


import com.xzer.xiaozhuoerinterface.entity.HttpResult;
import com.xzer.xiaozhuoerinterface.service.ThirdService;
import org.springframework.web.bind.annotation.*;

@RestController
public class ThirdController {

    private final ThirdService thirdService;


    public ThirdController(ThirdService thirdService) {
        this.thirdService = thirdService;
    }

    @RequestMapping("/thirdIdCardNumAndPlatType")
    @ResponseBody
    public HttpResult thirdIdCardNumAndPlatType(
            @RequestParam(value = "idCardNum") String idCardNum,
            @RequestParam(value = "platType") String platType){
        return thirdService.thirdIdCardNumAndPlatType(idCardNum,platType);
    }

    @RequestMapping("/thirdIdCardNumAndCreditLimit")
    public HttpResult thirdIdCardNumAndCreditLimit(
            @RequestParam(value = "idCardNum") String idCardNum,
            @RequestParam(value = "creditLimit") int creditLimit){
        return thirdService.thirdIdCardNumAndCreditLimit(idCardNum,creditLimit);
    }
}
